package cn.com.bob.library.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
* 
* @TableName user
*/
@Data
public class User implements Serializable {
    public User() {
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getHomeAddress() {
        return homeAddress;
    }

    public void setHomeAddress(String homeAddress) {
        this.homeAddress = homeAddress;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Integer getUserPermission() {
        return userPermission;
    }

    public void setUserPermission(Integer userPermission) {
        this.userPermission = userPermission;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getModifyUsername() {
        return modifyUsername;
    }

    public void setModifyUsername(String modifyUsername) {
        this.modifyUsername = modifyUsername;
    }

    public String getCreateUsername() {
        return createUsername;
    }

    public void setCreateUsername(String createUsername) {
        this.createUsername = createUsername;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public User(Integer userId, String username, String password, String realName, String phone, Integer gender, String email, Integer age, String homeAddress, String idCard, Integer userPermission, Date modifyTime, String modifyUsername, String createUsername, Date createTime) {
        this.userId = userId;
        this.username = username;
        this.password = password;
        this.realName = realName;
        this.phone = phone;
        this.gender = gender;
        this.email = email;
        this.age = age;
        this.homeAddress = homeAddress;
        this.idCard = idCard;
        this.userPermission = userPermission;
        this.modifyTime = modifyTime;
        this.modifyUsername = modifyUsername;
        this.createUsername = createUsername;
        this.createTime = createTime;
    }

    /**
    * 
    */
    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer userId;
    /**
    * 
    */
    @Size(max= 10,message="编码长度不能超过10")
    @ApiModelProperty("")
    @Length(max= 10,message="编码长度不能超过10")
    private String username;
    /**
    * 
    */
    @Size(max= 20,message="编码长度不能超过20")
    @ApiModelProperty("")
    @Length(max= 20,message="编码长度不能超过20")
    private String password;
    /**
    * 
    */
    @Size(max= 11,message="编码长度不能超过11")
    @ApiModelProperty("")
    @Length(max= 11,message="编码长度不能超过11")
    private String realName;
    /**
    * 
    */
    @Size(max= 11,message="编码长度不能超过11")
    @ApiModelProperty("")
    @Length(max= 11,message="编码长度不能超过11")
    private String phone;
    /**
    * 
    */
    @ApiModelProperty("1 男 0 女")
    private Integer gender;
    /**
    * 
    */
    @Size(max= 20,message="编码长度不能超过20")
    @ApiModelProperty("")
    @Length(max= 20,message="编码长度不能超过20")
    private String email;
    /**
    * 
    */
    @ApiModelProperty("")
    private Integer age;
    /**
    * 
    */
    @Size(max= 20,message="编码长度不能超过20")
    @ApiModelProperty("")
    @Length(max= 20,message="编码长度不能超过20")
    private String homeAddress;
    /**
    * 
    */
    @Size(max= 18,message="编码长度不能超过18")
    @ApiModelProperty("")
    @Length(max= 18,message="编码长度不能超过18")
    private String idCard;
    /**
    * 
    */
    @ApiModelProperty("")
    private Integer userPermission;
    /**
    * 
    */
    @ApiModelProperty("")
    private Date modifyTime;
    /**
    * 
    */
    @Size(max= 18,message="编码长度不能超过18")
    @ApiModelProperty("")
    @Length(max= 18,message="编码长度不能超过18")
    private String modifyUsername;
    /**
    * 
    */
    @Size(max= 18,message="编码长度不能超过18")
    @ApiModelProperty("")
    @Length(max= 18,message="编码长度不能超过18")
    private String createUsername;
    /**
    * 
    */
    @ApiModelProperty("")
    private Date createTime;


}
